// 系统日志管理模块api
import { axios } from '@/utils/request'
// 获取系统日志分页数据
function getSysLogPageData(query) {
  return axios({
    url: '/vehicle-service/vehicle/listSyncResult',
    method: 'post',
    data: query
  })
}

// 导出系统日志数据
function exportSysLogData(query) {
  return axios({
    url: '/user-service/operateLog/taskStatistics/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 系统日标题下拉数据
function getSysLogTitlesData(query) {
  return axios({
    url: '/user-service/operateLog/title/select',
    method: 'get',
    params: query
  })
}

// 数据重传
function retransmission(query) {
  return axios({
    url: '/vehicle-service/vehicle/sync/validateMesTotalByDate',
    method: 'get',
    params: query
  })
}

// 数据下载
function downFile(note) {
  return axios({
    url: `/vehicle-service/vehicle/down/mes/${note}`,
    method: 'get',
    responseType: 'blob'
  })
}
export default {
  getSysLogPageData,
  exportSysLogData,
  getSysLogTitlesData,
  retransmission,
  downFile
}
